<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<title>Accenture E-commerce</title>
	<script src="http://code.jquery.com/jquery-latest.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<link href="css/bootstrap.min.css" rel="stylesheet" media="screen" />
	<link href="css/style.css" rel="stylesheet" />
    <link href="css/primeFaces2.css" rel="stylesheet" />
</h:head>

<h:body>

	<p:toolbar></p:toolbar>

	<div id="corpo">
		<div class="row-fluid">
			<div class="span17">
			<h:outputLink class="menu" value="index.xhtml?faces-redirect=true"	>
					<img id = "imglogo" src="img/logo2.jpg" class="logo" />
				</h:outputLink>
				
			
			</div>
			<div id="mn" class="span10">

				<p:commandLink class="menu" action="#{sessionBean.efetuarLogout}"
					rendered="#{sessionBean.logado}">
					<h:outputText value="Logout" />
				</p:commandLink>

				<h:outputLink class="menu" value="login.xhtml"
					rendered="#{!sessionBean.logado}">
					<h:outputText value="Login" />
				</h:outputLink>

				<h:outputLink class="menu" value="index.xhtml?faces-redirect=true"	>
					<h:outputText value="Home" />
				</h:outputLink>

				<h:outputLink class="menu" value="view.xhtml"
					rendered="#{sessionBean.logado}">
					<h:outputText value="View Cart" />
				</h:outputLink>
				 <strong><h:outputText style="color: black" class="menu"
					value="Hello,  #{sessionBean.usuario.customer.first_name}"
					rendered="#{sessionBean.logado}" /></strong>
			</div>

		</div>

		<div class="row-fluid">
			<hr />

			<ui:insert name="conteudo"></ui:insert>
		</div>

		<div class="row-fluid">
			<hr />
			<h:outputLink class="menu" value="novocatalo.xhtml">
				<h:outputText value="New Calag" />
			</h:outputLink>
			<h:outputLink class="menu" value="novoproduto.xhtml">
				<h:outputText value="New Product" />
			</h:outputLink>
		</div>

	</div>
</h:body>
</html>